<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">hello</div>
  <script src="dist/vue.js"></script>
  <script>
    let vm = new Vue({
      el: '#app',
      // data: {
      //   name: 'zs'
      // },
      data() {
        return {
          name: 'zs',
          hobby: {
            gf: {
              one: 'zp'
            }
          },
          list: [1, 2, 3, 4, 5],
          arr: [
            {
              id: 1,
              name: '湖南省',
              child: [
                {
                  id: 2,
                  pid: 1,
                  name: '长沙市',
                  child: [
                    {
                      id: 18,
                      pid: 2,
                      name: '岳麓区'
                    }
                  ]
                }
              ]
            }
          ]
        }
      },
    })
    // .$mount('#app')
    vm._data.name = 'ls'
    vm._data.list.push(6)
    vm._data.arr.push({ id: 2, name: '湖北省' })
    // console.log(vm)
    // console.log(vm.name)
  </script>
</body>

</html>